<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> 

<!DOCTYPE html>
<html>
  <head>
    <title>postindex</title>
    <%@ page  isELIgnored="false"%>  
    <%@ include file="/common/forum_meta.jsp"%>
<script type="text/javascript">
   function index(){
                  $.ajax({
                url: "luceneIndex.do",
                datatype: 'json',
                type: "Post",
                async: false,
                data: {
                },
                success: function (data) {
                	if(data!=null){
                		var result=eval("(" + data + ")").result;
                		if(result==1){
                			alert("成功");
                		}else{
                		    alert("失败");       			
                		}
                	}
                },
            }); 
   }
</script>
   
  </head>

  <body>
   <input type="button" value="建立索引" onclick="index();">

 </body>
</html>